package game;

import java.awt.Color;
import java.util.HashMap;
import java.util.Map;

/**
 * @author Sarun Wongtanakarn 5510546166
 * @author Apiwat Jierakulpanit 5510546212
 * @Version 2013.05.01
 */
public class ColorMap {
	private static Map<Integer, Color> colorMap;
	static {
		colorMap = new HashMap<Integer, Color>();

		/** Background or field's color */
		colorMap.put(0, new Color(128, 128, 128));

		/** Player 1 - 8's color */
		colorMap.put(1, new Color(0, 131, 225));
		colorMap.put(3, new Color(102, 255, 0));
		colorMap.put(2, new Color(250, 255, 0));
		colorMap.put(4, new Color(225, 0, 131));
		colorMap.put(5, new Color(255, 210, 0));
		colorMap.put(6, new Color(190, 190, 190));
		colorMap.put(7, new Color(51, 132, 29));
		colorMap.put(8, new Color(155, 141, 209));

		/** food color */
		colorMap.put(9, new Color(255, 255, 255));
	}

	public static Color get(int index) {
		return colorMap.get(index);

	}
}
